package com.gxzy.domain.view;

import com.gxzy.domain.entity.Login;
import com.gxzy.domain.entity.Role;
import com.gxzy.domain.entity.User;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用户登陆成功后,保存在缓存中的信息
 */

@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor                 //无参构造
@AllArgsConstructor                //有参构造
public class LoginInfoView implements Serializable {
    private static final long serialVersionUID = 1L;

    private Login login;
    private User user;
    private Role role;
}
